#pragma once

#include "../instrument.h"
#include "./PlayFileDiag.h"
#include <wx/ctb/timer.h>
class PlayFile :	public Instrument
{
public:
	PlayFile(void);
	void *Entry(void);
	void StartDevice(wxString FileName,wxString FilePath,bool File);
	void StopDevice(void);
	int OpenPort(const char *PortCom, const char *OpenVal2, const char *OpenVal3);;
public:
	int ReadData(SampleStruct *pData);
	~PlayFile(void);
	bool			isLooped;

private:
	wxFile			File;
	timer			*pTimer;
	
	SampleStruct Data;
};